package utils;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

/**
 * Created by FireFire on 3/24 0024.
 */
public class JSON {
    public static Gson excludeWithoutExpose(){
        Gson gson = new GsonBuilder().setDateFormat("yyyy-MM-dd HH:mm:ss").excludeFieldsWithoutExposeAnnotation().create();
        return gson;
    }

    public static Gson customExpose(){
        Gson gson = new GsonBuilder().setDateFormat("yyyy-MM-dd HH:mm:ss").setExclusionStrategies(new CustomExclusionStrategy()).create();
        return gson;
    }

}
